package com.example.demo.entity.response.purchase;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.example.demo.common.entity.response.BaseResponse;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author lzy
 * @date 2020-09-15 16:49:27
 */
@Data
public class PurchaseOrderResponse extends BaseResponse implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "订单id")
    private String orderNum;
//    @ApiModelProperty(value = "采购清单id")
//    private Long purchaseListId;
    @ApiModelProperty(value = "采购企业")
    private String enterprise;
    @ApiModelProperty(value = "状态")
    private Integer state;
    @ApiModelProperty(value = "抄送人")
    private String carbonCopy;
    @ApiModelProperty(value = "审批人")
    private String approval;
    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @JsonFormat(timezone = "GMT+8",
            pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "submit_time", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "提交时间")
    @ExcelIgnore
    private Date submitTime;

}
